package com.echat.messagesender.sender.email.bean.enumclass;

/**
 * Created by chenmohan on 2018/09/06
 *
 * @description
 */
public enum EmailServerName {

    AliCloud(1L),SendCloud(2L),Apache(3L);

    private Long value;

    EmailServerName(Long value) {
        this.value = value;
    }

    public Long value() {
        return value;
    }

    public static EmailServerName get(Long platformId){
        Integer id = Integer.valueOf(platformId + "");
        switch (id){
            case 1: return AliCloud;
            case 2: return SendCloud;
            case 3: return Apache;
        }
        return null;
    }
}
